@import url(https://fonts.googleapis.com/css?family=Open+Sans:600,400);
.frame {
  position: absolute;
  width: 400px;
  height: 400px;
  inset: 0;
  margin: auto;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
  border-radius: 2px;
  font-family: "Open Sans", Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #3f3f3f;
  overflow: hidden;
}

.map {
  position: absolute;
  inset: 0;
  background-color: #2196f3;
}
.map svg {
  fill: #1f8de4;
}

.marker {
  position: absolute;
  z-index: 5;
  top: 151px;
  left: 176px;
  cursor: pointer;
  font-size: 0;
  transform: perspective(600px) rotateY(0deg);
  opacity: 1;
  transition: all 0.5s ease 0.4s;
}
.marker.inactive {
  transform: perspective(600px) rotateY(-90deg);
  opacity: 0;
  transition: all 0.5s ease;
}
.marker svg {
  fill: #ffcc30;
  animation: hovering 1s ease-in-out infinite alternate;
}
.marker .shadow {
  width: 18px;
  height: 4px;
  background-color: #1b7ac7;
  margin: 5px auto 0 auto;
  border-radius: 50%;
  animation: shadow 1s ease-in-out infinite alternate;
}

.card {
  position: absolute;
  z-index: 10;
  width: 240px;
  height: 190px;
  inset: 0;
  margin: auto;
  overflow: hidden;
  background-color: #fff;
  box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.2);
  border-radius: 3px;
  text-align: center;
  pointer-events: none;
  transform: perspective(600px) rotateY(-90deg);
  opacity: 0;
  transition: all 0.5s ease;
}
.card.active {
  transform: perspective(600px) rotateY(0deg);
  pointer-events: all;
  opacity: 1;
  transition: all 0.5s ease 0.4s;
}
.card img {
  margin-bottom: 18px;
}
.card p {
  font-weight: 400;
  font-size: 12px;
  line-height: 17px;
  margin: 2px 0;
}
.card p.name {
  font-size: 14px;
  line-height: 19px;
  font-weight: 600;
}
.card .actions {
  position: absolute;
  width: 100%;
  height: 40px;
  left: 0;
  bottom: 0;
}
.card .actions a {
  float: left;
  width: 50%;
  text-decoration: none;
  text-align: center;
  line-height: 40px;
  color: #1f8de4;
  font-weight: 400;
  font-size: 12px;
  transition: all 0.3s ease-in;
}
.card .actions a:hover {
  color: #7a1bc7;
}
.card .actions .divide {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 1px;
  height: 20px;
  background-color: #1f8de4;
}

@keyframes hovering {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-5px);
  }
}
@keyframes shadow {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.25);
  }
}